package cn.lzy.demo;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @Description
 * @Author lzy
 * @Date 2023/12/19 15:12
 * @Version
 **/
public class TestDemo {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext(JavaConfig.class);
        Calculator calculator = ctx.getBean(Calculator.class);
        System.out.println("calculator.getClass() = " + calculator.getClass());
        calculator.add(1, 2);
        System.out.println("=========");
        calculator.minus(3, 1);
    }
}
